package com.pos43.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import com.pos43.domain.OrderItem;
public class Orders {

	private Integer orderId;
	private Date addDate;
	private Float summ;
	private Boolean isVip = false;
	private Boolean isValid = true;
	private User user;
	Set<OrderItem> orderItems = new HashSet<OrderItem>();
	
	
	public Orders() {
	}


	public Orders(Integer orderId, Date addDate, Float summ, Boolean isVip, Boolean isValid,
			User user, Set<OrderItem> orderItems) {
		this.orderId = orderId;
		this.addDate = addDate;
		this.summ = summ;
		this.isVip = isVip;
		this.isValid = isValid;
		this.user = user;
		this.orderItems = orderItems;
	}


	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}


	public Integer getOrderId() {
		return orderId;
	}


	public Date getAddDate() {
		return addDate;
	}


	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}


	public Boolean getIsVip() {
		return isVip;
	}

	public void setIsVip(Boolean isVip) {
		this.isVip = isVip;
	}

	public Boolean getIsValid() {
		return isValid;
	}


	public void setIsValid(Boolean isValid) {
		this.isValid = isValid;
	}


	public Set<OrderItem> getOrderItems() {
		return orderItems;
	}

	public void setOrderItems(Set<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}


	public Float getSumm() {
		return summ;
	}


	public void setSumm(Float summ) {
		this.summ = summ;
	}


	

	

	

	
	
}
